﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Cinema_Ticketing_System.Models.ViewModel
{
    public class AddUserViewModel
    {
        [Required(ErrorMessage = "{0}不能为空")]
        [DisplayName("电话号码")]
        public string userphone { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [DisplayName("密码")]
        public string userpassword { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [DisplayName("再次输入密码")]
        [Compare("userpassword", ErrorMessage = "两次输入密码不一致")]
        public string newpwd { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [DisplayName("请输入验证码")]
        public string authcode { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [DisplayName("用户昵称")]
        public string username { get; set; }

    }
}